<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<p 我是
   p1></p>
<h1>我是和</h1>
<!--
模版字符串，用于解决字符串和变量的拼接问题
-->
<script>
    //es5
    var name = "刘备";
    console.log("hello" + name)
    var str = "<p>我是\n" + "p1</p>\n" + "<h1>我是和</h1>"
    //es6
    let name2 = "刘备";
    console.log(`hello,${name2}`);
    let template = `<p>我是
   p1</p>
   <h1>我是和</h1>`
</script>
</body>
</html>